package cn.dsttl3.tupan.utils;

import ohos.app.Context;
import ohos.data.DatabaseHelper;
import ohos.data.preferences.Preferences;

/**
 * 本地数据存储操作
 */
public class DataUtils {
    public Preferences getPreferences(Context context){
        DatabaseHelper databaseHelper = new DatabaseHelper(context);
        String fileName = "data";
        return databaseHelper.getPreferences(fileName);
    }
}
